<?php
if (!defined('INDEX')) {
	exit ('Access Denied');
}

$parameter=act_wap_user_pwd();
extract($parameter);
include(TPLPATH.'/inc/header_3.tpl.php');
?>
<script>
function cbCheckForm(input,$form){
	var url='<?=wap_l(MOD,ACT)?>';
	url=ddJoin(url,input);
	$.ajax({
		url: url,
		dataType:'jsonp',
		jsonp:"callback",
		success: function(data){
			if(data.s==1){
				alert('设置完成',goBack);
			}
			else{
				alert(data.r);
			}
		}
	});
	return false;
}

function goBack(){
	history.back();
}
</script>  
       <div class="admin_xfl">
                    <ul>
            <li><a href="<?=wap_l('user','set')?>"  <?php if($act=='set'){?>class="on"<?php }?>>账号设置</a> </li>
            <li > <a href="<?=wap_l('user','tbnick')?>" <?php if($act=='tbnick'){?>class="on"<?php }?>>淘宝账号绑定</a> </li>
            <li > <a href="<?=wap_l('user','pwd')?>" <?php if($act=='pwd'){?>class="on"<?php }?>>修改密码</a> </li>
                    </ul>
           </div>	
 <div class="p15" style="margin-top:-10px"><div class="register">
	    <form onSubmit="return checkForm($(this),cbCheckForm)" action="">
    <table border="0" width="100%" cellpadding="0" cellspacing="0" >
	   <?php if($dduser['default_pwd']!=''){?>
		<tr height="40">
		  <td height="35"  style="text-align:left">默认密码：<font color="#FF0000"><?=$dduser['default_pwd']?></font></td>
		</tr>
		 <?php }?>
		<tr height="40">
		  <td><input id="old_pwd" name="old_pwd" placeholder="请输入登录密码" class="ddinput" dd-required type="password" /></td>
		</tr>
		<tr height="40">
		  <td><input id="ddpwd" name="ddpwd" placeholder="请输入新密码" class="ddinput"  dd-required type="password"></td>
		</tr>
		<tr height="40">
		  <td><input id="pwd_confirm" name="pwd_confirm" value="" dd-equal="ddpwd" class="ddinput"  dd-required placeholder="请输重复新密码" type="password"></td>
		</tr>
		<tr height="40">
		  <td height="90" colspan="2"> <input type="hidden" name="do" value="pwd" /><input type="hidden" name="sub" value="1" />
          <input type="submit" value="提交保存" id="sub"  class="register_dl"></td>
		  <td></td>
		</tr>
	  </table>
      </form>	 
   </div>	
</div>
<?php include(TPLPATH.'/inc/footer.tpl.php');?>